import Vue from 'vue'
import Router from 'vue-router'
import home from '../view/home.vue'
import detail from '../view/detail.vue'

Vue.use(Router)
const VueRouterPush = Router.prototype.push
Router.prototype.push = function push (to) {
  return VueRouterPush.call(this, to).catch(err => err)
}
const router=new Router({
	routes:[
		{
			path:"/home",
			component:home
		},
		{
			path:"/detail",
			component:detail
		}
	]
});
export default router